package com.itheima.movie.controller;

import com.itheima.movie.domain.Movie;
import com.itheima.movie.service.MovieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author fanYuLe
 * @Date 2023/3/25 14:42
 * @Blog blog.fanYuLe.net/996.mba
 * @Description:
 */
@RestController
public class MovieController {
    @Autowired
    private MovieService movieService;

    //1.查询电影列表和电影详情
    @GetMapping("/movie/list")
    public List<Movie> list(String token){
       List<Movie> list = movieService.list();
       return list;
    }
}

